|
|
|
|
|
|
|
Figure 23.5
The DataFormat propertys date formats. |
|
|
|
|
|
|
|
|
For date formats, youre allowed to choose many different options. Simply select the format in which you want to display the date. |
|
|
|
|
|
|
|
|
There are many other format types, as you can see in the Format Type list box in Figure 23.5. Each one has a different format value that you can select on the right side of this dialog box. Some even allow you to enter your own custom format. |
|
|
|
|
|
|
|
|
The TabIndex Property and the Label Control |
|
|
|
|
|
|
|
|
You may have noticed that a label control has a TabIndex property. Yet, a label control cannot receive focus. Why is this? Well, the answer is that you can place an ampersand (&) character in front of one of the characters in the labels Caption property to make that character underlined. When you press Alt+<letter>, focus automatically goes to the control that has the next highest TabIndex property. |
|
|
|
|
|
|
|
|
In Figure 23.6, you can see that the C in City is underscored. If the TabIndex for that label is 6, and the text box, txtCity, has the TabIndex value 7, when you press Alt+C, focus will jump to the txtCity text box. This is used to help people who like to use the keyboard to jump from one part of the form to another without having to use the mouse. |
|
|
|
|
|